package com.ymttest.database.sharding.db.sharding.model;

import java.math.BigDecimal;
import java.util.Date;

public class ShenqiProxyChainPo {
    /**
     * id BIGINT(19) 必填<br>
     * 
     */
    private Long id;

    /**
     * order_id BIGINT(19) 必填<br>
     * 订单ID
     */
    private Long orderId;

    /**
     * catalog_id VARCHAR(50) 必填<br>
     * 规格ID
     */
    private String catalogId;

    /**
     * title VARCHAR(1000)<br>
     * 买手设定的商品标题
     */
    private String title;

    /**
     * picture_url VARCHAR(1000)<br>
     * 买手设定的商品图片
     */
    private String pictureUrl;

    /**
     * from_parent_price DECIMAL(18,2)<br>
     * 从上层代理的拿货价
     */
    private BigDecimal fromParentPrice;

    /**
     * to_child_price DECIMAL(18,2)<br>
     * 转给下层代理的出手价
     */
    private BigDecimal toChildPrice;

    /**
     * index_in_chain INTEGER(10) 必填<br>
     * 在代理链的位置，越小越靠近货头
     */
    private Integer indexInChain;

    /**
     * seller_id BIGINT(19) 必填<br>
     * 买手id
     */
    private Long sellerId;

    /**
     * add_time TIMESTAMP(19) 必填<br>
     * 
     */
    private Date addTime;

    /**
     * update_time TIMESTAMP(19) 必填<br>
     * 
     */
    private Date updateTime;

    /**
     * child_seller_id BIGINT(19) 必填<br>
     * seller的下一级代理, 0代表无下级
     */
    private Long childSellerId;
    
    /**
     * 商品的币种
     */
    private String currency;
    
    /**
     * 买手本人的规格id
     */
    private String proxyCatalogId;

    /**
     * 拿货价类型，0：拿货价，1：分佣比例，2：固定金额'
     */
    private Integer fromParentPriceType;
    
    /**
     * 是否分销小店，true：是，false：不是
     */
    private Boolean isFenxiaoShop;
    
    /**
     * 卖出商品的售价
     */
    private BigDecimal salePrice;
    
    /**
     * 成本价 
     */
    private BigDecimal costPrice;
    
    /**
     * id BIGINT(19) 必填<br>
     * 获得 
     */
    public Long getId() {
        return id;
    }

    /**
     * id BIGINT(19) 必填<br>
     * 设置 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * order_id BIGINT(19) 必填<br>
     * 获得 订单ID
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * order_id BIGINT(19) 必填<br>
     * 设置 订单ID
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * catalog_id VARCHAR(50) 必填<br>
     * 获得 规格ID
     */
    public String getCatalogId() {
        return catalogId;
    }

    /**
     * catalog_id VARCHAR(50) 必填<br>
     * 设置 规格ID
     */
    public void setCatalogId(String catalogId) {
        this.catalogId = catalogId == null ? null : catalogId.trim();
    }

    /**
     * title VARCHAR(1000)<br>
     * 获得 买手设定的商品标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * title VARCHAR(1000)<br>
     * 设置 买手设定的商品标题
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * picture_url VARCHAR(1000)<br>
     * 获得 买手设定的商品图片
     */
    public String getPictureUrl() {
        return pictureUrl;
    }

    /**
     * picture_url VARCHAR(1000)<br>
     * 设置 买手设定的商品图片
     */
    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl == null ? null : pictureUrl.trim();
    }

    /**
     * from_parent_price DECIMAL(18,2)<br>
     * 获得 从上层代理的拿货价
     */
    public BigDecimal getFromParentPrice() {
        return fromParentPrice;
    }

    /**
     * from_parent_price DECIMAL(18,2)<br>
     * 设置 从上层代理的拿货价
     */
    public void setFromParentPrice(BigDecimal fromParentPrice) {
        this.fromParentPrice = fromParentPrice;
    }

    /**
     * to_child_price DECIMAL(18,2)<br>
     * 获得 转给下层代理的出手价
     */
    public BigDecimal getToChildPrice() {
        return toChildPrice;
    }

    /**
     * to_child_price DECIMAL(18,2)<br>
     * 设置 转给下层代理的出手价
     */
    public void setToChildPrice(BigDecimal toChildPrice) {
        this.toChildPrice = toChildPrice;
    }

    /**
     * index_in_chain INTEGER(10) 必填<br>
     * 获得 在代理链的位置，越小越靠近货头
     */
    public Integer getIndexInChain() {
        return indexInChain;
    }

    /**
     * index_in_chain INTEGER(10) 必填<br>
     * 设置 在代理链的位置，越小越靠近货头
     */
    public void setIndexInChain(Integer indexInChain) {
        this.indexInChain = indexInChain;
    }

    /**
     * seller_id BIGINT(19) 必填<br>
     * 获得 买手id
     */
    public Long getSellerId() {
        return sellerId;
    }

    /**
     * seller_id BIGINT(19) 必填<br>
     * 设置 买手id
     */
    public void setSellerId(Long sellerId) {
        this.sellerId = sellerId;
    }

    /**
     * add_time TIMESTAMP(19) 必填<br>
     * 获得 
     */
    public Date getAddTime() {
        return addTime;
    }

    /**
     * add_time TIMESTAMP(19) 必填<br>
     * 设置 
     */
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    /**
     * update_time TIMESTAMP(19) 必填<br>
     * 获得 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * update_time TIMESTAMP(19) 必填<br>
     * 设置 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * child_seller_id BIGINT(19) 必填<br>
     * 获得 seller的下一级代理, 0代表无下级
     */
    public Long getChildSellerId() {
        return childSellerId;
    }

    /**
     * child_seller_id BIGINT(19) 必填<br>
     * 设置 seller的下一级代理, 0代表无下级
     */
    public void setChildSellerId(Long childSellerId) {
        this.childSellerId = childSellerId;
    }

    public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getProxyCatalogId() {
		return proxyCatalogId;
	}

	public void setProxyCatalogId(String proxyCatalogId) {
		this.proxyCatalogId = proxyCatalogId;
	}

	public Integer getFromParentPriceType() {
		return fromParentPriceType;
	}

	public void setFromParentPriceType(Integer fromParentPriceType) {
		this.fromParentPriceType = fromParentPriceType;
	}

	public Boolean getIsFenxiaoShop() {
		return isFenxiaoShop;
	}

	public void setIsFenxiaoShop(Boolean isFenxiaoShop) {
		this.isFenxiaoShop = isFenxiaoShop;
	}

	public BigDecimal getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(BigDecimal salePrice) {
		this.salePrice = salePrice;
	}

	public BigDecimal getCostPrice() {
		return costPrice;
	}

	public void setCostPrice(BigDecimal costPrice) {
		this.costPrice = costPrice;
	}

	@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderId=").append(orderId);
        sb.append(", catalogId=").append(catalogId);
        sb.append(", title=").append(title);
        sb.append(", pictureUrl=").append(pictureUrl);
        sb.append(", fromParentPrice=").append(fromParentPrice);
        sb.append(", toChildPrice=").append(toChildPrice);
        sb.append(", indexInChain=").append(indexInChain);
        sb.append(", sellerId=").append(sellerId);
        sb.append(", addTime=").append(addTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", childSellerId=").append(childSellerId);
        sb.append(", currency=").append(this.currency);
        sb.append(", proxyCatalogId=").append(this.proxyCatalogId);
        sb.append(", isFenxiaoShop=").append(this.isFenxiaoShop);
        sb.append(", fromParentPriceType=").append(this.fromParentPriceType);
        sb.append(", salePrice=").append(this.salePrice);
        sb.append(", costPrice=").append(this.costPrice);
        sb.append("]");
        return sb.toString();
    }
}